<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title><%=title%></title>
    <script src="/js/jquery183.js"></script>
    <script src="/js/socket.io.js"></script>

    <script>
        $(function(){
            var socket = io.connect('http://localhost:3001');
            socket.on('news', function (data) {
                console.log(data);
                socket.emit('haha', { my: 'datafdfg',mm:'dfdfeeee' });
            });
            socket.on('nw',function(data){
                console.log(data.my);
            })
        })
    </script>
</head>
<body>
<div id="talk">
    <p><span style="color:red;font-size: 20px;">gaolk</span>:大家好啊</p>

</div>
<div id="count">共有访客<span>3</span>人</div>
<textarea id="push">

</textarea>
<p>发送聊天</p>
</body>
</html>